projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed8c1b5
)
Free GC strings when releasing waypoint.
author
robertl
<robertl>
Sat, 24 Jul 2004 22:47:29 +0000
(22:47 +0000)
committer
robertl
<robertl>
Sat, 24 Jul 2004 22:47:29 +0000
(22:47 +0000)
waypt.c
patch
|
blob
|
history
diff --git
a/waypt.c
b/waypt.c
index f5f2323a8310424160b9e42069b0d6e0b15f889f..04acd2ec1f7d556d520ebffd5d6d46ded70e6f31 100644
(file)
--- a/
waypt.c
+++ b/
waypt.c
@@
-243,6
+243,12
@@
waypt_free( waypoint *wpt )
if (wpt->gpx_extras) {
free_gpx_extras(wpt->gpx_extras);
}
+ if (wpt->gc_data.desc_short.utfstring) {
+ xfree(wpt->gc_data.desc_short.utfstring);
+ }
+ if (wpt->gc_data.desc_long.utfstring) {
+ xfree(wpt->gc_data.desc_long.utfstring);
+ }
xfree(wpt);
}